<div class="panel panel-primary">
  <div class="panel-heading">用户注册</div>
  <div class="panel-body">
    <form class="form-horizontal">
      <div class="form-group">
        <label class="col-xs-2 control-label">用户名：</label>
        <div class="col-xs-10">
          <input type="email" class="form-control" placeholder="Email" (keyup)="userNameChange($event)">
        </div>
      </div>
      <div class="form-group">
        <label class="col-xs-2 control-label">密码：</label>
        <div class="col-xs-10">
          <input #pwd type="password" class="form-control" placeholder="Password" (keyup)="0">
        </div>
      </div>
    </form>
  </div>
  <div class="panel-footer">
    <p>用户名：{{userName}}</p>
    <p>密码：{{pwd.value}}</p>
  </div>
</div>